<?php
require_once("PHPMySQLiDatabaseClass/MysqliDb.php");
require_once("db_config.php");
$account = $_GET["account"];
$db_config = new dbConfig();
$db = new MysqliDb
(
    $db_config->host,
    $db_config->account,
    $db_config->pwd,
    'student'
);
#选择字段
$account_col = Array('account');
$cols = Array("nickname","sex","location","user_info");

$data = $db->get("userinfo",null,$account_col);

if($db->count == 0)
{
    echo false;
}
else
{
    $json = $db->jsonBuilder()->get("userinfo",null,$cols);
    echo $json;
}
?>